<?php

require_once 'db.php';

class keywords extends db {

    public function select() {
        $this->connect();
        $query = "SELECT * FROM keywords";
        $keywords = $this->query($query);
        return $keywords;
    }
    
    public function greater_10() {
        $this->connect();
        $query = "SELECT * FROM keywords";
        $keywords = $this->query($query);
        foreach ($keywords as $keyword) {
            if (strlen($keyword["name"])>10){
                echo $keyword["id"]." ";
                echo $keyword["name"]."<br>";                
            }
        }        
    }
}
?>
